* {
  margin: 0;
  padding: 0;
}
.wrap {
  width: 1200px;
  height: 700px;
  margin: 0 auto;
  margin-top: 100px;
  display: grid;
  grid-template-rows: repeat(4, 175px);
  grid-template-columns: repeat(5, 225px);
  gap: 10px;
}
.wrap div {
  position: relative;
  border: 10px solid #cecece;
}
img {
  display: block;
  position: absolute;
  border: 1px solid #cecece;
  margin: 0 auto;
}
img:hover {
  transform: scale(2);
  padding: 3px;
  background-color: #fff;
  border: 2px solid #000;
  z-index: 1;
}
/* img:hover {
  top: -75px;
  left: -100px;
  width: 400px;
  height: 300px;
  padding: 3px;
  background-color: #fff;
  border: 2px solid #000;
  z-index: 1;
} */
